<?php
    $auth = Zend_Auth::getInstance();
    
    if ($auth->hasIdentity()) {
        $identity = $auth->getIdentity();
        if (isset($identity)) {
            printf('<div class="mod-login"><p class="user">Bienvenido, <em>%s</em> &middot; <a href="/account/logout">Logout</a></p></div>', $identity);
        }
    }else{
        //$this->form->setAction('/account/login');
        echo $this->form;
    }					
?>
